def count_characters(input_string):
    letters = 0
    spaces = 0
    digits = 0
    others = 0
    for char in input_string:
        #判断字符
        if char.isalpha():
            letters += 1
            #判断空格
        elif char.isspace():
            spaces += 1
            #判断是不是数字
        elif char.isdigit():
            digits += 1
        else:
            #其他字符
            others += 1

    return letters, spaces, digits, others

def main():
    input_string = input("请输入一行字符：")
    letters, spaces, digits, others = count_characters(input_string)

    print(f"英文字母个数: {letters}")
    print(f"空格个数: {spaces}")
    print(f"数字个数: {digits}")
    print(f"其他字符个数: {others}")

if __name__ == "__main__":
    main()